 <?php if(!isset($_SESSION['username'])){?>
 
 <!-- dang nhap-->
        	<div id="khung_group">
   		    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                <td>
             		<div id="title_group">
                    	<div id="ing_left"><img src="public/images/nut_muiten.png"/></div><div class="chu_title">ĐĂNG NHẬP</div> 
                    </div>
             		<div class="contain_group">
                    	<div id="contain_group_noidung">
                    	<div id="dangnhap">
                    	 <form name="dangnhap" method="post" action="">
                        <table>
                         <tr>
                                  <td >Tài khoản:</td>
                                  <td ><input type="text" name="username" id="username" size="10"/></td>
                                </tr>
                                <tr>
                                  <td> Mật khẩu:</td>
                                  <td ><input type="password" name="password" id="password" size="10" /></td>
                                </tr>
                                <tr>
                                  <td colspan="2" valign="top" >
                                    <input type="submit" name="ok" id="nut" value="Đăng Nhập" />
                                    <a href="index.php?mod=dangky">Đăng ký</a>
                                 </td>
                         </table>
                         </form>
                         </div>
						</div>
                    </div>
             		 <div class="group_footer"></div>
           		 </td></tr>
      		</table>
 			</div>
         <!-- end -->
 <?php }
else { ?>   
	<!-- dang nhap-->
        	<div id="khung_group">
   		    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                <td>
             		<div id="title_group">
                    	<div id="ing_left"><img src="public/images/nut_muiten.png"/></div><div class="chu_title">ĐĂNG NHẬP</div> 
                    </div>
             		<div class="contain_group">
                    	<div id="contain_group_noidung">
                    	<div id="dangnhap">
                    	 <form name="dangnhap" method="post" action="">
                        <table>
                         <tr>
                                  <td ><?php echo "Chào bạn ".$_SESSION['username']." !";?></td>
                             
                                </tr>
                                <tr>
                                  <td align="center"><?php echo "<a href='index.php?mod=thoat' style='color:#F00'>Thoát</a>";?></td>
                      
                                </tr>
                                
                         </table>
                         </form>
                         </div>
						</div>
                    </div>
             		 <div class="group_footer"></div>
           		 </td></tr>
      		</table>
 			</div>
         <!-- end -->                            	
                            <?php        
                                 }
                            ?>         
         
         